53af645f8df9752608df0d98038a6be228a3ee2a,velocity/tool/src/java/org/sakaiproject/cheftool/PagedResourceActionII.java,PagedResourceActionII,doList_next,#RunData#Context#,592

Before Change


		// %%% ?? doList(runData, context);

		// set the page number
		int page = ((Integer) state.getAttribute(STATE_CURRENT_PAGE)).intValue();
		state.setAttribute(STATE_CURRENT_PAGE, new Integer(page + 1));

	} // doList_next

After Change


		// %%% ?? doList(runData, context);

		// set the page number
		int page = state.getAttribute(STATE_CURRENT_PAGE) != null ?
				((Integer) state.getAttribute(STATE_CURRENT_PAGE)).intValue() : 1;
		state.setAttribute(STATE_CURRENT_PAGE, new Integer(page + 1));

	} // doList_next